<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="<?php echo $read_alignment;?>" lang="<?php echo $html_lang;?>">
<head>
<?php
global $log_hash, $database_up, $bmfopt, $usertype, $userpoint, $language;
include("lang/$language/hefo.php");
?>
<link rel="shortcut icon" href="/bmb/images/favicon.ico" />
<link rel="stylesheet" type="text/css" media="screen" href="<?php echo $otherimages;?>/neweditor/editor.css" />
<link rel="stylesheet" type="text/css" media="screen" href="<?php echo $otherimages;?>/styles.css" />
<link title="<?php echo $oldbbs_title ? $oldbbs_title : $bbs_title; ?>" rel="search" type="application/opensearchdescription+xml" href="datafile/cache/search.xml" />
<link rel="alternate" type="application/rss+xml" href="rss.php?forumid=<?php echo $forumid;?>&amp;tagname=<?php echo $urltagname;?>" title="<?php echo $bbs_title; if ($add_title) echo $add_title;?>" />
<title><?php echo $bbs_title;if ($add_title) echo $add_title; ?> - powered by bmforum.com</title>
<?php 	if ($jumppagetrue=="yes")  { ?>
<meta http-equiv="refresh" content="4; url=<?php echo $url;?>" />
<?php }elseif ($reauto){ ?>
<meta http-equiv="refresh" content="<?php echo $reauto;?>; url=<?php echo $_SERVER['REQUEST_URI'];?>" />
<?php } ?>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta name="generator" content="<?php echo $verandproname;?>" />
<meta name="keywords" content="<?php global $keyword_site; echo $keyword_site; ?>" />
<meta name="robots" content="index, follow" />
<meta name="googlebot" content="index, follow" />
<script type="text/javascript">
//<![CDATA[ 
function openScript(url, width, height){
	var win = window.open(url,"openscript",'width=' + width + ',height=' + height + ',resizable=1,scrollbars=yes,menubar=no,status=yes' );
}
function bbimg(o){
<?php if($openbbimg==1){ ?>
if (event.ctrlkey == true){
var zoom=parseint(o.style.zoom,10)||100;zoom+=event.wheeldelta/12;if (zoom>0) o.style.zoom=zoom+'%';return false;
}
<?php } ?>
}
//]]>>
</script>
<script type="text/javascript" src="images/bsd01/sms.js"></script>
<script type="text/javascript" src="datafile/navigator.js"></script>
<?php
include("mainjs.php");
?>
</head>

<body>
<div align="center">
<div id="totallayer" style="text-align:left;width:96%; height:auto; z-index:1; border: none; " class="bmforum_background">
<table border="0" align="center" cellpadding="0" cellspacing="0" style="width:100%;">
<tr><td>		
	<table width="100%" class="background_color" border="0" align="center" cellpadding="0" cellspacing="0">
		<tr>
			<td width="169" height="70"><a href="index.php">
			<img alt="Create The World With Creativity" title="Create The World With Creativity" border="0" src="<?php echo $otherimages;?>/logo.gif" /></a></td>
			<td width="*" align="center"><?php
if ($ads_select==1){//广告开关
$topfile="datafile/topads.php";
	if (file_exists($topfile)) {
		include($topfile);		
		}
}
?>
			<div align="right">
&nbsp; <?php echo $topads;?> </div>
			</td>
		</tr>
	</table>
	<table class="bmbnewstyle_withoutwidth" style="margin-top:3px;" cellspacing="0" cellpadding="0" width="100%" align="center" border="0">
		<tr>
			<td style="background-color: #CDE2F8;">
			<table cellspacing="1" cellpadding="5" width="100%" border="0">
				<tr>
					<td class="bmforum_base_menu">
					<table cellspacing="0" cellpadding="1" width="100%">
						<tr>
							<td align="right">
							<span class="bmforum_menu_text">
							<?php echo $hefo[1]; if ($login_status==0) echo "<strong>$hefo[3]</strong>:<a href='login.php'>$hefo[4]</a> | <a href='register.php'>$hefo[5]</a>"; 
								else echo "<strong>{$username}</strong>:<a href='login.php'>$hefo[7]</a> | <a href='login.php?job=quit&amp;verify=$log_hash'>$hefo[8]</a>"  ;
							?>
							</span>
							<?php if ($usertype[22]=="1" || $usertype[21]=="1") { echo "<span class='bmforum_menu_text'> | <a href='admin.php'>$hefo[2]</a></span>";}?>
							<span class="bmforum_menu_text"> 
							|
							<?php if ($login_status == 1) { ?><a href="usercp.php" onmouseover="showmenu(event,linkset[3],0)" onmouseout="delayhidemenu()">
							<?php echo $hefo[14];?></a> |<?php } ?> 
							<a href="#" onmouseover="showmenu(event,linkset[1],0)" onmouseout="delayhidemenu()">
							<?php echo $hefo[37];?></a> |
							<?php if ($fnew_skin==1 && $stylecount > 1){ ?>
							<a href="#" onmouseover="showmenu(event,linkset[2],0)" onmouseout="delayhidemenu()">
							<?php echo $hefo[38];?></a> |
							<?php } ?>
							<?php if ($count_language > 1){ ?>
							<a title="Languages" href="#" onmouseover="showmenu(event,linkset[5],0)" onmouseout="delayhidemenu()"><?php echo $hefo[46];?></a> |
							<?php } 
							if ($login_status==1) { 
								global $gotNewMessage; 
								$new_tips = "";
								if ($gotNewMessage>0) $new_tips = "(<strong>$gotNewMessage</strong>)";
							?>
							<a href="messenger.php?job=receivebox"><?php echo "$hefo[15]$new_tips";?></a> |
							<?php } ?>
							<a href="search.php?searchfid=<?php echo $forumid;?>">
							<?php echo $hefo[12];?></a> | <a href="plugins.php?p=tags"><?php echo $hefo[44];?></a> |
							<a href="faq.php">
							<?php echo $hefo[13];?></a><?php echo $myplugin;?></span></td>
						</tr>
					</table>
					</td>
				</tr>
			</table>
			</td>
		</tr>
	</table>
</td></tr></table>
<div id="popmenu" class="menuskin" onmouseover="clearhidemenu();highlightmenu(event,'on')" onmouseout="highlightmenu(event,'off');dynamichide(event)" style="z-index:100;">
</div>
<div id="ajax_information" onclick="this.style.visibility='hidden';" title="<?php echo $hefo[54];?>"><strong><?php echo $hefo[53];?></strong>
<br /><br />
<div id="ajax_error_detail"></div>
</div>
<br />
<?php 

if ($login_status==0 && $page_regtips=="1" && $all_regtips!="1" && $cancel_guestfile!="reglog") echo "<div id='bmbsms' style=\"visibility: hidden;  position: absolute; top: 0px; width: 180px; height: 116px;\"  class='forumcoloronecolor'><table cellspacing='0' cellpadding='5' width='100%' class='forumcoloronecolor' border='0' onclick=\"	document.getelementbyid('bmbsms').style.visibility='hidden';\"><tr><td> {$hefo[29]}</td></tr><tr><td style='height:90px;' align='center'>{$hefo[30]}<br /><br /><strong><a href='register.php'>{$hefo[31]}</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href='login.php'>{$hefo[32]}</a></strong><br /><br />{$hefo[33]}<br /></td></tr></table></div>"; 

if (($usertype[118] == 1 || $userpoint < $usertype[119]) && $cancel_guestfile!="reglog") {
	navi_bar("$hefo[17]","$hefo[16]");
	msg_box($hefo[18],$hefo[19]); 
	require("footer.php");
	exit;
} 

if ($gotNewMessage > 0 && $_COOKIE['TNM'] != 1) {
	echo "<embed type='audio/mpeg' src='{$otherimages}/sms.wav' hidden='true' autostart='true' loop='false' /><div id='bmbsms' style=\"visibility: hidden;  position: absolute; top: 0px; width: 180px; height: 116px;\"  class='forumcoloronecolor'><table cellspacing='0' cellpadding='5' width='100%' class='forumcoloronecolor' border='0' onclick=\"	document.getelementbyid('bmbsms').style.visibility='hidden';\"><tr><td> {$hefo[34]}</td></tr><tr><td style='height: 90px' align='center'>{$hefo[35]}<br /><a href='messenger.php?job=receivebox'>{$hefo[36]}</a><br /></td></tr></table></div>";
	if ($bmfopt['newpms'] > 0) {
?>
<table cellpadding="5" cellspacing="1" border="0" class="tableborder" align="center">
	<tr>
		<td class="announcement" colspan="5">
		<span class="categoryfontcolor_normal" style="font-weight:bold;"><a href="messenger.php?job=receivebox"><?php echo $hefo[51];?>(<?php echo $gotNewMessage;?>)</a></span></td>
	</tr>
<?php
		$display_NewMessage = min($gotNewMessage, $bmfopt['newpms']);
		$display_NM_result = bmbdb_query("SELECT * FROM {$database_up}primsg WHERE stid='$userid' and `prread`=0 ORDER BY `prtime` DESC LIMIT 0,".$display_NewMessage, 1);
		while (false !== ($display_NM_row = bmbdb_fetch_array($display_NM_result))) {
			$display_NM_title = $display_NM_row['prtitle'];
			$display_NM_urlbelong = urlencode($display_NM_row['belong']);
			if (empty($display_NM_title)) $display_NM_title = "($hefo[52])";
			$display_NM_prcontent = substrfor(stripslashes(strip_tags($display_NM_row['prcontent'])), 0, 30)."...";
?>
<tr style="cursor: pointer;" onclick="window.location='messenger.php?job=read&msg=<?php echo $display_NM_row["id"];?>';" class='forum_border_one_1' onmouseover="javascript:this.className='forum_border_one_2';" onmouseout="javascript:this.className='forum_border_one_1';">
<td width="*" class='forum_border_one_3'><a href='messenger.php?job=read&msg=<?php echo $display_NM_row["id"];?>'><?php echo $display_NM_title;?>: <?php echo $display_NM_prcontent;?></a></td>
<td width='15%' class='forum_border_one_3'><a href='messenger.php?job=write&memberid=<?php echo $display_NM_urlbelong;?>'><?php echo $display_NM_row['belong'];?></a></td>
<td width='15%' class='forum_border_one_3'><?php echo getfulldate($display_NM_row['prtime']);?></td>
</tr>
<?php
		}

?>
</table>
<br />
<?php
	}
}

?>